package com.fairylove.test;

import com.fairylove.rpc.annotation.ServiceScan;
import com.fairylove.rpc.api.HelloService;
import com.fairylove.rpc.api.HelloServiceImpl;
import com.fairylove.rpc.serializer.CommonSerializer;
import com.fairylove.rpc.transport.netty.server.NettyServer;

@ServiceScan
public class NettyTestServer {
    public static void main(String[] args) {
        HelloService helloService = new HelloServiceImpl();
        NettyServer server1 = new NettyServer("127.0.0.1", 9999, CommonSerializer.KROY_SERIALIZER);
//        server1.publishService(helloService, "com.fairylove.rpc.api.HelloService");
        server1.start();

    }
}
